package com.cryptoneedle.center.config.service;

import com.bubbles.engine.data.core.repository.BaseRepository;
import com.bubbles.engine.data.core.service.BaseService;
import com.cryptoneedle.center.config.entity.ConfigProperty;
import com.cryptoneedle.center.config.repository.ConfigPropertyRepository;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>description: 配置属性 </p>
 *
 * @author CryptoNeedle
 * @date 2025-09-25
 */
@Service
@Slf4j
public class ConfigPropertyService extends BaseService<ConfigProperty, String> {

    @Resource
    private ConfigPropertyRepository configPropertyRepository;


    @Override
    public BaseRepository<ConfigProperty, String> getRepository() {
        return this.configPropertyRepository;
    }

    public List<ConfigProperty> list() {
        return configPropertyRepository.findAll();
    }
}